/**
 * Copyright (c) 2016-2019 优博信息科技 All rights reserved.
 *
 * https://www.jnyoubo.com
 *
 * 版权所有，侵权必究！
 */

package com.youbo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youbo.entity.ApiV1Entity;
import com.youbo.entity.OrderMxEntity;
import com.youbo.form.*;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * V1
 *
 * @author macy
 */
public interface ApiV1Service extends IService<ApiV1Entity> {


	Integer clrOrderMx();

	Long queryNextKey(String key,String tableName);


	Integer importBrOrder(Long brId,Long orderId,String date);


	String getPatientInfo(String medicalCardNumber);

	List<Detail> queryWaitPay(Long orderId);


	List<Dept> queryDept();

	List<Dept2> todayRegisterGetDepts();



	List<Doctor> queryDoctors(String ksdm);

	List<Doctor2> todayRegisterGetDoctors(String ksdm,String week,String sdate,String edate,String pm);



	Integer queryGhCsz();
	Integer queryGhYz();
	Integer queryGhFp(String sfz);


	HashMap<String,Object> queryGhf(String ksdm, String week, String pm);


	HashMap<String,Object> summary(String sdate,String edate);

	List<HashMap<String,Object>> dailySummary(String sdate,String edate);


	List<HashMap<String,Object>> detail(String sdate,String edate);


	HashMap<String,Object> reconciliation(String tradeNo);


	List<HashMap<String,Object>> queryHospitalizationRecord(String sfzh,String sdate,String edate);


	HashMap<String,Object> queryHospitalization(String zyh);


	List<HashMap<String,Object>> queryHospitalizationDetail(String zyh);

	List<Detail> queryOrderMxByBrid(String brid,String orderId);

	HashMap<String, Object> statistics(@Param("date1") String date1,@Param("date2") String date2);


}
